package cn.yuyiling.jelly.sr.mongodb.repository;

import cn.yuyiling.jelly.sr.mongodb.entity.ReviewSchedule;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;
import java.util.Optional;

public interface ReviewScheduleRepository extends MongoRepository<ReviewSchedule, String> {
    Optional<ReviewSchedule> findById(String id);
    List<ReviewSchedule> findByUserId(String userId);
    List<ReviewSchedule> findByUserIdAndKnowledgePointId(String userId, String knowledgePointId);
}